package wqh.domain;

/**
 * Created by devts on 2016/9/26.
 */
public class SystemLog {

    private Integer id;
    private String log_time_str;
    private String log_detail;
    private String user_name;
    private String log_type;
    private Integer type;

    public SystemLog()
    {

    }

    public SystemLog(String log_time_str, String log_detail, String log_type, String user) {
        this.log_time_str = log_time_str;
        this.log_detail = log_detail;
        this.log_type = log_type;
        this.user_name = user;
    }

    @Override
    public String toString() {
        return "SystemLog{" +
                "id=" + id +
                ", log_time_str=" + log_time_str +
                ", log_detail='" + log_detail + '\'' +
                ", user_name='" + user_name + '\'' +
                ", log_type='" + log_type + '\'' +
                ", type=" + type +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLog_time()
    {
        return log_time_str.substring(0,log_time_str.length()-2);
    }

    public void setLog_time(String log_time) {
        this.log_time_str = log_time;
    }

    public String getLog_detail() {
        return log_detail;
    }

    public void setLog_detail(String log_detail) {
        this.log_detail = log_detail;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getLog_type() {
        return log_type;
    }

    public void setLog_type(String log_type) {
        this.log_type = log_type;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}
